package org.test.client.ui.content;

import java.awt.event.MouseEvent;

import org.test.client.listener.ClickAction;
import org.test.client.ui.MainPanel;
import org.test.client.ui.left.LeftMenuItem;

public class ChangePanelListener implements ClickAction{

	private MainPanel main;
	private String key;
	private LeftMenuItem item;

	public ChangePanelListener(MainPanel main,LeftMenuItem item,String key){
		this.main = main;
		this.key = key;
		this.item = item;
	}
	
	@Override
	public Object doOnClick(MouseEvent ev) {
		main.changePanel(key);
		return null;
	}
	
	
}
